﻿using System.Collections.Generic;

namespace Resn.WhuPub.BIL
{
        /// <summary>
        ///定义门类管理器的属性和方法
        /// </summary>
        public interface ICategoryManager
        {
                /// <summary>
                ///获取门类集合
                /// </summary>
                /// <value>
                ///门类集合
                /// </value>
                List<ICategory> Categorys { get; }

                #region 方法

                /// <summary>
                ///创建门类
                /// </summary>
                /// <param name="name">名称</param>
                /// <param name="code">代码</param>
                /// <param name="categoryLevel">层次</param>
                /// <returns>
                ///创建的门类对象
                /// </returns>
                ICategory CreateCategory(string name, string code, CategoryLevel categoryLevel);

                /// <summary>
                /// 从EXCEL文件加载门类集合
                /// </summary>
                /// <param name="path">EXCEL文件路径</param>
                /// <returns>门类集合</returns>
                Dictionary<ICategory, Dictionary<ISubject, List<IMajor>>> LoadCategorysFromExcel(string path);

                #endregion 方法
        }
}